﻿using System.Web.Mvc;
using Abp.Web.Mvc.Authorization;
using Abp.Application.Navigation;
using Abp.Localization;
using XHD.WXZJ.Web.Models.Layout;
using Abp.Threading;

namespace XHD.WXZJ.Web.Controllers
{
    [AbpMvcAuthorize]
    public class HomeController : WXZJControllerBase
    {
        private readonly IUserNavigationManager _userNavigationManager;
        private readonly ILocalizationManager _localizationManager;
        public HomeController(IUserNavigationManager userNavigationManager, ILocalizationManager localizationManager)
        {
            _userNavigationManager = userNavigationManager;
            _localizationManager = localizationManager;
        }
        //public ActionResult Index()
        //{
        //    return View();
        //}


        public ActionResult Index()
        {
            //angular js页面
#if Spa
            return View("~/App/Main/views/layout/layout.cshtml"); //Layout of the angular application.
#endif

            //多页面主页
#if Mpa
            return View();
#endif
        }
    }
}